﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;
using Catering.View_Operaction;

namespace Catering.Catering_Page.richang
{
    public partial class HallYearCollect : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            string AREAID = UCDDLToolWithDate1.GetDDL_Area();
            string CLASSID = UCDDLToolWithDate1.GetDDL_Class();
            DateTime DTIME = UCDDLToolWithDate1.GetDateTime();
            string Title = Bind_Data_to_Controls.Bind_ReportTitle(AREAID, CLASSID, DTIME, "服务总表");
            View_Monitor vm=new View_Monitor();
            string pid = "0";
            if (Session["UserID"] != null) pid = Session["UserID"].ToString();
            ReportDataSource rds = new ReportDataSource("DataSet1", vm.GetHallYearCollect(pid,AREAID, CLASSID, DTIME, Title,false));
            ReportViewer1.LocalReport.DataSources.Clear();
            ReportViewer1.LocalReport.DataSources.Add(rds);
            ReportViewer1.LocalReport.Refresh();
            ReportViewer1.Visible = true;
        }
    }
}